home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
COMMON.Cxt
/
00075_Field_Chapter Script Template.txt
< prev
next >
Wrap
Text File
|
1997-01-14
|
4KB
|
149 lines
--
-- Edge CHAPTER Script 31-Oct-96
-- Based on generic CHAPTER script template 15-Oct-96
--
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on enterFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gLastFrame, gMusicOn, gCaptionOn
global gLocalSound
global gCurPath, gNavMode, gControlPanel
global gMap1Icon, gMap2Icon, gPlaceOfOrigin, gMultiPageSidebar
if voidP("gLastFrame") then set gLastFrame = 0
if voidP("gNavMode") then set gNavMode = "chapter"
if voidP("gLocalSound") then set gLocalSound = FALSE
set gPlaceOfOrigin = 0
set gMultiPageSidebar = FALSE
set gNavMode = "chapter"
-- make sure the control panel is updated in every way
if objectP(gControlPanel) then
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end if
if the frame = label("C1") then
-- ARTICLE
set gLastFrame = marker(1)
else if the frame = label("C2") then
-- SLIDE SHOW
if gMusicOn = TRUE then
if gLocalSound = FALSE then
if soundBusy(1) then sound stop 1
if soundBusy(2) then sound stop 2
sound fadeIn 1, 90
sound playFile 1, gCurPath & "DATA:EDGE:EDGELP.AIF"
set gLocalSound = TRUE
end if
end if
set gLastFrame = marker(1)
else if the frame = label("C3") then
-- VIDEO
set gLastFrame = marker(1)
set gLocalSound = FALSE
go to the frame + 1
end if
if gLocalSound = TRUE then
if soundBusy(1) = FALSE then
sound playFile 1, gCurPath & "DATA:EDGE:EDGELP.AIF"
end if
end if
end enterFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on exitFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gLastFrame
if gSoloMode = FALSE then keepmusic
go to the frame
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on MouseUp
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gLastFrame, gHotText, gHotTextLabel, gPlaceOfOrigin
global gMap1Icon, gMap2Icon, gPlaceOfOrigin, gSidebarOfOrigin
set nowhere = 0
set next = 1
set previous = 2
set intro = 3
set sidebar = 4
set destination = nowhere
if the ClickOn = gControlIcon then
openControlPanel
set destination = nowhere
else if the ClickOn = gNextIcon then
if gLastFrame = 0 then
alert "Internal Navigation Logic Error, how did we get here?"
end if
if the frame = gLastFrame then
set destination = intro
else
set destination = next
end if
else if the ClickOn = gPreIcon then
if gLastFrame = 0 then
alert "Internal Navigation Logic Error, how did we get here?"
end if
if the frame = label("C1") then
set destination = intro
else if the frame = label("C2") then
set destination = intro
else if the frame = label("C3") then
set destination = intro
else
set destination = previous
end if
else if the ClickOn = gHotText then
set gPlaceOfOrigin = the frame
set destination = sidebar
end if
case destination of
next:
go to frame the frame + 1
previous:
go to frame the frame - 1
intro:
set gLocalSound = FALSE
if soundBusy(1) then sound fadeOut 1, 90
go to frame "intro"
sidebar:
if gHotTextLabel = "gear-list" then
go to frame label("S1")
else if gHotTextLabel = "begining-hikes" then
go to frame label("S2")
else if gHotTextLabel = "massacre" then
go to frame label("S3")
else if gHotTextLabel = "canyoners" then
go to frame label("S5")
else
alert "chapter::mouseup: internal error, unknown hot text target"
end if
end case
end if
end MouseUp